import uuid
from Connector.client import res_success
from service.func.render_attribute import render_attribute


class CmdRenderAttribute:
    name = "render_attribute"
    id = uuid.uuid4()

    def __init__(self, service, Params, Tag, Type):
        self.service = service
        self.params = Params
        self.tag = Tag
        self.type = Type

    async def execute(self):
        attribute: str = self.params.get("attribute")
        print(attribute)
        render_attribute(self.service, attribute)
